import requests

from common.logging_ues import init_log_config
from config import BASE_DIR


class MksxLoginApi(object):
    @classmethod
    def login(cls, res_data):
        resp = requests.post(url="http://admin.5istudy.online/login/", json=res_data)
        return resp


if __name__ == '__main__':
    res_data = {"username": 18256569494, "password": 456789}
    res = MksxLoginApi.login(res_data)
    print(res.json())
